﻿using System.Runtime.Serialization;

namespace StreetPacMan.Server
{
    [DataContract]
    public class ServerPollResult
    {
        public ServerPollResult(ClientEntity[] players, string message, int[] removedAppleIds)
        {
            Players = players;
            Message = message;
            RemovedAppleIdsInLastFiveSeconds = removedAppleIds;
        }

        [DataMember]
        public ClientEntity[] Players { get; private set; }
        [DataMember]
        public string Message { get; private set; }
        [DataMember]
        public int[] RemovedAppleIdsInLastFiveSeconds { get; private set; }
    }
}